package com.haredot.config;

import com.haredot.constraint.RabbitConst;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NotifyConfig {

    @Bean("notifyQueue")
    public Queue queue() {
        return QueueBuilder.durable(RabbitConst.NOTIFY_QUEUE).build();
    }
}
